package com.example.flower_shop.vo.base;

import io.swagger.v3.oas.annotations.media.Schema;
import jakarta.validation.constraints.NotNull;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

@AllArgsConstructor
@Data
@NoArgsConstructor
@Schema(description = "分页查询参数")
public class BasePage {
    /**
     * 页码
     */
    @Schema(description = "页码", example = "1")
    @NotNull(message = "页码不能为空")
    private Integer page;
    /**
     * 每页大小
     */
    @Schema(description = "每页大小", example = "10")
    @NotNull(message = "每页大小不能为空")
    private Integer size;
}
